home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32
- Path: netcom.com!alan
- From: alan@netcom.com (Robert Alan Wright)
- Subject: VC++ 4.0 memory allocation slower than in 2.x!!!
- Message-ID: <alanDozpsy.Kn6@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- Date: Thu, 28 Mar 1996 18:24:33 GMT
- Sender: alan@netcom14.netcom.com
-
- I recently posted a request for help in determining why a program which
- was simply recompiled on VC++4.0 suddenly ran 3 times slower than the
- same one did under VC++ 2.0.
-
- I went through all the usual steps of making sure that I had the right
- compiler/link settings and even built my own version of the MFC
- libraries to make sure they were fully optimized.
-
- Upon further profiling and other exploration, I found out the problem:
- THE VC++ 4.0 MEMORY ALLOCATION ROUTINES ARE WAY SLOWER!!!
-
- I don't understand how this can be, but I switched from using the
- Microsoft malloc/realloc routines to my own versions, and now I
- get about the same performance from the app that I used to.
- As best I can tell, the new realloc routine is about 10 TIMES SLOWER
- than the old one, and malloc is also slower. At this point, I
- have replaced the use of almost all Microsoft MFC classes as well as
- C/C++ runtime routines in order to get decent performance. I am quite
- disgusted in the apparent low quality of their implementations.
-
- Can anyone offer any more rational explanation for this than that
- Microsoft has horrible quality control? I'm having a hard time
- believing they could do screw up this badly.
-
- Alan
-
-